\hypertarget{class_string_array}{\section{String\+Array类 参考}
\label{class_string_array}\index{String\+Array@{String\+Array}}
}


字符串型数组类  




{\ttfamily \#include $<$Array.\+h$>$}

类 String\+Array 继承关系图\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{class_string_array}
\end{center}
\end{figure}
\subsection*{Public 成员函数}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_string_array_a02f4a1dc1bc63b44c4aeafe174b3b681}{String\+Array} ()
\begin{DoxyCompactList}\small\item\em 字符串数组构造函数 \end{DoxyCompactList}\item 
\hyperlink{class_string_array_af1fc945005ae8a218d30c3281e0b64bd}{$\sim$\+String\+Array} ()
\begin{DoxyCompactList}\small\item\em 字符串数组析构函数 \end{DoxyCompactList}\item 
bool \hyperlink{class_string_array_a69634aeaec8b3618c07c5da7e6e12c91}{init\+With\+String} (const string \&array\+String)
\begin{DoxyCompactList}\small\item\em 从格式化的字符串中初始化数组 \end{DoxyCompactList}\item 
string \hyperlink{class_string_array_abd7a485554c0a5e129022d4849e9e419}{serialize} ()
\begin{DoxyCompactList}\small\item\em 序列化字符串数组 \end{DoxyCompactList}\item 
int \hyperlink{class_string_array_a0ae65e4ad0b7fd64c4c2a8d0e4c0fa05}{size} ()
\begin{DoxyCompactList}\small\item\em 获取数组大小 \end{DoxyCompactList}\item 
int \hyperlink{class_string_array_a3548d335d8ebf1e285a588598e81d2e4}{type} ()
\begin{DoxyCompactList}\small\item\em 获取类型 \end{DoxyCompactList}\item 
void \hyperlink{class_string_array_a8fd0efd89f558e84cda917aa3ecc3525}{clear} ()
\begin{DoxyCompactList}\small\item\em 清空数组 \end{DoxyCompactList}\item 
string \& \hyperlink{class_string_array_a4e916bc762d1f355ce262cb288ddd4d4}{operator\mbox{[}$\,$\mbox{]}} (int idx)
\begin{DoxyCompactList}\small\item\em \mbox{[}\mbox{]}运算符重载,获取数组元素 \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{友元}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_string_array}{String\+Array} \& \hyperlink{class_string_array_a15843b8040342177f56f45b044fe236c}{operator$<$$<$} (\hyperlink{class_string_array}{String\+Array} \&, string)
\begin{DoxyCompactList}\small\item\em $<$$<$运算符重载,实现给数组添加元素 \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{详细描述}
字符串型数组类 

\subsection{构造及析构函数说明}
\hypertarget{class_string_array_a02f4a1dc1bc63b44c4aeafe174b3b681}{\index{String\+Array@{String\+Array}!String\+Array@{String\+Array}}
\index{String\+Array@{String\+Array}!String\+Array@{String\+Array}}
\subsubsection[{String\+Array}]{\setlength{\rightskip}{0pt plus 5cm}String\+Array\+::\+String\+Array (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_string_array_a02f4a1dc1bc63b44c4aeafe174b3b681}


字符串数组构造函数 


\begin{DoxyParams}{参数}
{\em none} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
none 
\end{DoxyReturn}
\hypertarget{class_string_array_af1fc945005ae8a218d30c3281e0b64bd}{\index{String\+Array@{String\+Array}!````~String\+Array@{$\sim$\+String\+Array}}
\index{````~String\+Array@{$\sim$\+String\+Array}!String\+Array@{String\+Array}}
\subsubsection[{$\sim$\+String\+Array}]{\setlength{\rightskip}{0pt plus 5cm}String\+Array\+::$\sim$\+String\+Array (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_string_array_af1fc945005ae8a218d30c3281e0b64bd}


字符串数组析构函数 


\begin{DoxyParams}{参数}
{\em none} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
none 
\end{DoxyReturn}


\subsection{成员函数说明}
\hypertarget{class_string_array_a8fd0efd89f558e84cda917aa3ecc3525}{\index{String\+Array@{String\+Array}!clear@{clear}}
\index{clear@{clear}!String\+Array@{String\+Array}}
\subsubsection[{clear}]{\setlength{\rightskip}{0pt plus 5cm}void String\+Array\+::clear (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{class_string_array_a8fd0efd89f558e84cda917aa3ecc3525}


清空数组 


\begin{DoxyParams}{参数}
{\em none} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
none 
\end{DoxyReturn}


实现了 \hyperlink{class_array}{Array}.

\hypertarget{class_string_array_a69634aeaec8b3618c07c5da7e6e12c91}{\index{String\+Array@{String\+Array}!init\+With\+String@{init\+With\+String}}
\index{init\+With\+String@{init\+With\+String}!String\+Array@{String\+Array}}
\subsubsection[{init\+With\+String}]{\setlength{\rightskip}{0pt plus 5cm}bool String\+Array\+::init\+With\+String (
\begin{DoxyParamCaption}
\item[{const string \&}]{array\+String}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{class_string_array_a69634aeaec8b3618c07c5da7e6e12c91}


从格式化的字符串中初始化数组 


\begin{DoxyParams}{参数}
{\em array\+String} & 格式化字符串,例如\+:\mbox{[}\char`\"{}\+Jim\char`\"{},\char`\"{}\+Tom\char`\"{},\char`\"{}\+Kim\char`\"{}\mbox{]} \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
成功返回true,失败返回false 
\end{DoxyReturn}


实现了 \hyperlink{class_array}{Array}.

\hypertarget{class_string_array_a4e916bc762d1f355ce262cb288ddd4d4}{\index{String\+Array@{String\+Array}!operator\mbox{[}$\,$\mbox{]}@{operator[]}}
\index{operator\mbox{[}$\,$\mbox{]}@{operator[]}!String\+Array@{String\+Array}}
\subsubsection[{operator[]}]{\setlength{\rightskip}{0pt plus 5cm}string \& String\+Array\+::operator\mbox{[}$\,$\mbox{]} (
\begin{DoxyParamCaption}
\item[{int}]{idx}
\end{DoxyParamCaption}
)}}\label{class_string_array_a4e916bc762d1f355ce262cb288ddd4d4}


\mbox{[}\mbox{]}运算符重载,获取数组元素 


\begin{DoxyParams}{参数}
{\em idx} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
返回索引为idx的数组元素 
\end{DoxyReturn}
\hypertarget{class_string_array_abd7a485554c0a5e129022d4849e9e419}{\index{String\+Array@{String\+Array}!serialize@{serialize}}
\index{serialize@{serialize}!String\+Array@{String\+Array}}
\subsubsection[{serialize}]{\setlength{\rightskip}{0pt plus 5cm}string String\+Array\+::serialize (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{class_string_array_abd7a485554c0a5e129022d4849e9e419}


序列化字符串数组 


\begin{DoxyParams}{参数}
{\em none} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
返回格式化字符串\+:\mbox{[}\char`\"{}a\char`\"{},\char`\"{}b\char`\"{},\char`\"{}c\char`\"{}\mbox{]} 
\end{DoxyReturn}


实现了 \hyperlink{class_array}{Array}.

\hypertarget{class_string_array_a0ae65e4ad0b7fd64c4c2a8d0e4c0fa05}{\index{String\+Array@{String\+Array}!size@{size}}
\index{size@{size}!String\+Array@{String\+Array}}
\subsubsection[{size}]{\setlength{\rightskip}{0pt plus 5cm}int String\+Array\+::size (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{class_string_array_a0ae65e4ad0b7fd64c4c2a8d0e4c0fa05}


获取数组大小 


\begin{DoxyParams}{参数}
{\em none} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
返回数组大小(元素个数) 
\end{DoxyReturn}


实现了 \hyperlink{class_array}{Array}.

\hypertarget{class_string_array_a3548d335d8ebf1e285a588598e81d2e4}{\index{String\+Array@{String\+Array}!type@{type}}
\index{type@{type}!String\+Array@{String\+Array}}
\subsubsection[{type}]{\setlength{\rightskip}{0pt plus 5cm}int String\+Array\+::type (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{class_string_array_a3548d335d8ebf1e285a588598e81d2e4}


获取类型 


\begin{DoxyParams}{参数}
{\em none} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
B\+A\+S\+E\+T\+Y\+P\+E\+\_\+\+S\+T\+R\+I\+N\+G\+A\+R\+R\+A\+Y 
\end{DoxyReturn}


实现了 \hyperlink{class_array}{Array}.



\subsection{友元及相关函数文档}
\hypertarget{class_string_array_a15843b8040342177f56f45b044fe236c}{\index{String\+Array@{String\+Array}!operator$<$$<$@{operator$<$$<$}}
\index{operator$<$$<$@{operator$<$$<$}!String\+Array@{String\+Array}}
\subsubsection[{operator$<$$<$}]{\setlength{\rightskip}{0pt plus 5cm}{\bf String\+Array}\& operator$<$$<$ (
\begin{DoxyParamCaption}
\item[{{\bf String\+Array} \&}]{array, }
\item[{string}]{value}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [friend]}}}\label{class_string_array_a15843b8040342177f56f45b044fe236c}


$<$$<$运算符重载,实现给数组添加元素 


\begin{DoxyParams}{参数}
{\em none} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
返回数组 
\end{DoxyReturn}


该类的文档由以下文件生成\+:\begin{DoxyCompactItemize}
\item 
libemb/inc/\hyperlink{_array_8h}{Array.\+h}\item 
libemb/src/Array.\+cpp\end{DoxyCompactItemize}
